package com.example.annotation;

import java.lang.annotation.*;

/**
 * 幂等校验注解
 * @author long
 * @date 2023/12/30 9:39
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.METHOD})
@Documented
public @interface Idempotent {

    /**
     * 默认3秒
     */
    int expire() default 3;

    String prefix() default "idempotent";

}
